package guoanmaker.operator.business.service;

import java.util.List;
import java.util.Map;

import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.RequestBody;

import guoanmaker.operator.business.model.OperatorNewsList;

/**
 * @author huZhaoyu 
 * @ClassName: OperatorNewsListServiceInterface 
 * @Description: OperatorNewsListServiceInterface
 * @date 2017/6/28
 */
public interface OperatorNewsListServiceInterface {

    /** 
    * @Title: saveNewsList
    * @Description: 新增/修改 新闻
    * @param：OperatorRoundPhoto   
    * @return OperatorNewsList    
    * @throws 
    */
    int saveNewsList(OperatorNewsList operatorNewsList);

    /** 
    * @Title: getAllNewsList
    * @Description: 查询所有新闻
    * @param：void  
    * @return List<OperatorNewsList>   
    * @throws 
    */
    List<OperatorNewsList> getAllNewsList();

    /** 
    * @Title: getAllNewsListByPage
    * @Description: 查询全部新闻并分页 
     * @param：Integer page 页码  
     * @param：Integer size 条数 
    * @return Page<OperatorNewsList>   
    * @throws 
    */
    Page<OperatorNewsList> getAllNewsListByPage(Integer page, Integer size);

    /** 
    * @Title: deleteNewsListById
    * @Description: 根据Id删除新闻 
    * @param： String id   
    * @return void   
    * @throws 
    */
    void deleteNewsListById(String id);

    /** 
    * @Title: getNewsListById 
    * @Description: 根据Id查询新闻
    * @param： String id
    * @return OperatorNewsList    
    * @throws 
    */
    OperatorNewsList getNewsListById(String id);

    /** 
     * @Title: getNewsListById 
     * @Description: 根据Id查询新闻
     * @param： String id
     * @return OperatorNewsList    
     * @throws 
     */
    Page<OperatorNewsList> getTieleAndUrl(Integer page, Integer size);
    
    List<OperatorNewsList> getNewsListByNewType(String newsType);
    
    Map<String,Object> getAllNewsListByStautsPage(Integer page,Integer size,Integer status,String newsTitle,String newsCreater,String StrartCreateDate,
    		String endCreateDate,String StrartNewsDate,String endNewsDate);
    
    int updateStautsNewsList(String id,Integer stauts);
    
    int updateNewList(OperatorNewsList operatorNewsList);
    
    List<OperatorNewsList> getNewsList();
    
    Map getpcNewList(Integer page, Integer size);

}
